<?php echo $this->fetch('header.html'); ?>
<div id="rightTop">
    <p>
        您好<b><?php echo $this->_var['admin']['user_name']; ?></b>，欢迎使用 ECMall。
        您上次登录的时间是 <?php echo local_date("Y-m-d H:i:s",$this->_var['admin']['last_login']); ?> ，IP 是 <?php echo $this->_var['admin']['last_ip']; ?>
    </p>
</div>
<dl id="rightCon">
<div class="important">
    <ul class="import">
        <li class="import_1">
            <div class="module">
                <i></i>
                <div class="detail">
                    <strong><?php echo ($this->_var['news_in_a_week']['new_order_amount'] == '') ? '0.00' : $this->_var['news_in_a_week']['new_order_amount']; ?></strong>
                    <span>一周订单总额</span>
                </div>
            </div>
        </li>
        <li class="import_2">
            <div class="module">
                <i></i>
                <div class="detail">
                    <strong><?php echo $this->_var['news_in_a_week']['new_order_qty']; ?></strong>
                    <span>一周订单数</span>
                </div>
            </div>
        </li>
        <li class="import_3">
            <div class="module">
                <i></i>
                <div class="detail">
                    <strong><?php echo $this->_var['news_in_a_week']['new_user_qty']; ?></strong>
                    <span>新增会员数</span>
                </div>
            </div>
        </li>
        <li class="import_4">
            <div class="module">
                <i></i>
                <div class="detail">
                    <strong><?php echo $this->_var['news_in_a_week']['new_store_qty']; ?></strong>
                    <span>一周入驻店铺数</span>
                </div>
            </div>
        </li>
        <li class="import_5">
            <div class="module">
                <i></i>
                <div class="detail">
                    <strong><?php echo $this->_var['news_in_a_week']['new_store_qty']; ?>&nbsp;/&nbsp;<?php echo $this->_var['news_in_a_week']['new_apply_qty']; ?></strong>
                    <span>新增店铺数/申请数</span>
                </div>
            </div>
        </li>
    </ul>
</div>
<div class="welcome_detaile">
    <div class="item shop_item">
        <div class="mt">
            <span>待处理<em><?php echo $this->_var['shop_stats']['total']; ?> 个</em></span>
        </div>
        <div class="mc">
            <ul>
                <li>
                    <strong><a href="<?php echo url('app=account_log&act=txlog'); ?>">待处理提现</a></strong>
                    <span><?php echo $this->_var['shop_stats']['tixian_qty']; ?> 个</span>
                </li>
                <li class="li_even">
                    <strong><a href="<?php echo url('app=store&wait_verify=1'); ?>">待处理店铺</a></strong>
                    <span><?php echo $this->_var['shop_stats']['apply_qty']; ?> 个</span>
                </li>
                <li>
                    <strong><a href="<?php echo url('app=refund&ask_customer=yes'); ?>">待处理退款</a></strong>
                    <span><?php echo $this->_var['shop_stats']['refund_qty']; ?> 个</span>
                </li>
            </ul>
        </div>
    </div>
    <div class="item goods_item">
        <div class="mt">
            <span>商品<em><?php echo $this->_var['goods_stats']['goods_qty']; ?> 个</em></span>
        </div>
        <div class="mc">
            <ul>
                <li>
                    <strong><a href="<?php echo url('app=goods'); ?>">商品总数</a></strong>
                    <span><?php echo $this->_var['goods_stats']['goods_qty']; ?> 个</span>
                </li>
                <li class="li_even">
                    <strong><a href="<?php echo url('app=goods'); ?>">上架的商品数</a></strong>
                    <span><?php echo $this->_var['goods_stats']['goods_on_qty']; ?> 个</span>
                </li>
                <li>
                    <strong><a href="<?php echo url('app=goods'); ?>">下架的商品数</a></strong>
                    <span><?php echo $this->_var['goods_stats']['goods_off_qty']; ?> 个</span>
                </li>
                <li class="li_even">
                    <strong><a href="<?php echo url('app=goods'); ?>">禁售的商品数</a></strong>
                    <span><?php echo $this->_var['goods_stats']['goods_close_qty']; ?> 个</span>
                </li>
            </ul>
        </div>
    </div>
    <div class="item order_item">
        <div class="mt">
            <span>订单<em><?php echo $this->_var['order_stats']['total_qty']; ?> 个</em></span>
        </div>
        <div class="mc">
            <ul>
                <li>
                    <strong><a href="<?php echo url('app=order&status=11'); ?>">待付款的订单</a></strong>
                    <span><?php echo $this->_var['order_stats']['pending_qty']; ?> 个</span>
                </li>
                <li class="li_even">
                    <strong><a href="<?php echo url('app=order&status=20'); ?>">待发货的订单</a></strong>
                    <span><?php echo $this->_var['order_stats']['accepted_qty']; ?> 个</span>
                </li>
                <li>
                    <strong><a href="<?php echo url('app=order&status=40'); ?>">已完成的订单</a></strong>
                    <span><?php echo $this->_var['order_stats']['finished_qty']; ?> 个</span>
                </li>
                <li class="li_even">
                    <strong><a href="<?php echo url('app=order&status=0'); ?>">已取消的订单</a></strong>
                    <span><?php echo $this->_var['order_stats']['canceled_qty']; ?> 个</span>
                </li>
            </ul>
        </div>
    </div>
</div>


    <?php if ($this->_var['remind_info']): ?>
    <dt>站长提醒</dt>
    <dd>
        <ul>
            <?php $_from = $this->_var['remind_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'remind');if (count($_from)):
    foreach ($_from AS $this->_var['remind']):
?>
            <li><?php echo $this->_var['remind']; ?></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </ul>
    </dd>
    <?php endif; ?>
    <dt>系统信息</dt>
    <dd>
        <table>
            <tr>
                <th>服务器操作系统:</th>
                <td class="td"><?php echo $this->_var['sys_info']['server_os']; ?></td>
                <th>WEB 服务器:</th>
                <td class="td"><?php echo $this->_var['sys_info']['web_server']; ?></td>
            </tr>
            <tr>
                <th>PHP 版本:</th>
                <td class="td"><?php echo $this->_var['sys_info']['php_version']; ?></td>
                <th>MYSQL 版本:</th>
                <td class="td"><?php echo $this->_var['sys_info']['mysql_version']; ?></td>
            </tr>
            <tr>
                <th>ECMall 版本:</th>
                <td class="td"><?php echo $this->_var['sys_info']['ecmall_version']; ?></td>
                <th>安装日期:</th>
                <td class="td"><?php echo $this->_var['sys_info']['install_date']; ?></td>
            </tr>
        </table>
    </dd>
</dl>
<?php echo $this->fetch('footer.html'); ?>
